<div class="navbar-default sidebar" role="navigation">
  <div class="sidebar-nav navbar-collapse">
    <ul class="nav" id="side-menu">
      <li class="sidebar-search">

        <%= form_tag houses_path, method: 'get', role: "search" do %>
            <div class="input-group">
              <%= text_field_tag 'query', params[:query], class: "form-control inpu", placeholder: "搜索关键字" %>
              <div class="input-group-btn">
                <button class="btn btn-default btn" type="submit"><i class="glyphicon glyphicon-search"></i>
                </button>
              </div>
            </div>
        <% end %>

        <!-- /input-group -->
      </li>
      <li>
        <%= link_to root_url, method: :get do %>
            <i class="fa fa-dashboard fa-fw"></i> 地图找房
        <% end %>
      </li>

      <li><%= link_to houses_path, method: :get do %>
            <i class="fa fa-table fa-fw"></i> 房源列表
        <% end %>
      </li>

      <li>
        <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 房价分析 <span class="fa arrow"></span></a>
        <ul class="nav nav-second-level">
          <li><%= link_to '散点图', visualisation_scatter_path, method: :get %></li>
          <li> <%= link_to '热力图', visualisation_heatmap_path, method: :get %></li>
          <li> <%= link_to 'Tableau', visualisation_tableau_path, method: :get %></li>

        </ul>
      </li>

      <li><%= link_to spiders_path, method: :get do %>
            <i class="fa fa-map fa-fw"></i> 抓取房屋集周边
        <% end %>
      </li>

    </ul>
  </div>
  <!-- /.sidebar-collapse -->
</div>